package net.oschina.md2.export;

import net.oschina.md2.markdown.Block;

import org.apache.poi.xwpf.usermodel.XWPFDocument;

public class DocDecorator extends Decorator{

	private XWPFDocument doc;
	public DocDecorator(XWPFDocument doc){
		this.doc = doc;
	}
	
	@Override
	public void decorate(Block block) {
		throw new RuntimeException("暂未支持word doc文档的导出");
	}

	@Override
	public XWPFDocument decoratedDocOfWord() {
		return this.doc;
	}

}
